<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>index</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script>
    <script>
      function order() {

          window.location.href = '/order/order/' + Math.floor(Math.random()*10000);
      }
    </script>
</head>
<body>
<input type="button" onclick="order()" value="点击下单" />
</body>
</html>